import * as Blockly from 'blockly/core';

const blocks = {};

blocks.block_tool_color_type0 = {
    init: function () {
        this.appendDummyInput()
            .appendField(new Blockly.FieldAngle(90), "COLOR");
        this.setOutput(true, null);
        this.setColour(90);
        this.setTooltip("");
        this.setHelpUrl("");
    }
};

blocks.block_tool_color_type1 = {
    init: function () {
        this.appendDummyInput()
            .appendField(new Blockly.FieldColour("#ff0000"), "COLOR");
        this.setOutput(true, null);
        this.setColour("#5ba5a5");
        this.setTooltip("");
        this.setHelpUrl("");
    }
};

blocks.block_tool_color_type2 = {
    init: function () {
        this.appendDummyInput()
            .appendField(new Blockly.FieldColourHsvSliders("#ff0000"), "COLOR");
        this.setOutput(true, null);
        this.setColour("#5ba5a5");
        this.setTooltip("");
        this.setHelpUrl("");
    }
};

export default blocks;